/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import javax.swing.Icon;
import javax.swing.ImageIcon;

/**
 *
 * @author Motaz
 */
class Icons {
    
    private Icon onlineIcon;
    private Icon offlineIcon;
    private Icon awayIcon;
    private Icon busyIcon;
    
    public Icon getOnlineIcon() {
        if(onlineIcon == null)
            onlineIcon = new ImageIcon(MainFrame.class.getResource("/resources/Status_online_icon.png"));
        return onlineIcon;
    }

    public Icon getAwayIcon() {
        if(awayIcon == null)
            awayIcon = new ImageIcon(MainFrame.class.getResource("/resources/Status_away_icon.png"));
        return awayIcon;
    }

    public Icon getBusyIcon() {
        if(busyIcon == null)
            busyIcon = new ImageIcon(MainFrame.class.getResource("/resources/Status_busy_icon.png"));
        return busyIcon;
    }

    public Icon getOfflineIcon() {
        if(offlineIcon == null)
            offlineIcon = new ImageIcon(MainFrame.class.getResource("/resources/Status_offline_icon.png"));
        return offlineIcon;
    }
    
    
}
